export default () => {
  return {
    grid: {
      right: '15%'
    },
    title: {
      text: '日累计流量',
      left: 'center',
      top: '10%',
      textStyle: {
        color: '#ccc',
        fontStyle: 'normal',
        fontWeight: 'bold',
        fontFamily: 'sans-serif'
      }
    },
    xAxis: {
      max: 'dataMax',
      splitLine: {
        show: false
      },
      axisLine: {
        show: true
      },
      name: 'm³/d',
      nameTextStyle: {
        color: '#ccc',
        fontStyle: 'normal',
        fontWeight: 'bold',
        fontFamily: 'sans-serif'
      }
    },
    yAxis: {
      type: 'category',
      inverse: true,
      animationDuration: 300,
      animationDurationUpdate: 300
    },
    series: [
      {
        realtimeSort: true,
        type: 'bar',
        barWidth: '50%',
        label: {
          show: true,
          position: 'right',
          valueAnimation: true
        },
        itemStyle: {
          opacity: 0.8
        }
      }
    ],
    animationDuration: 0,
    animationDurationUpdate: 200,
    animationEasing: 'linear',
    animationEasingUpdate: 'linear'
  }
}
